Skip to content

RTK

Dein KI-Agent ertrinkt im Rauschen.
RTK räumt auf.

Sauberer Kontext
Bessere Agenten

Open Source · Apache 2.0 · Rust

Diagramm: ein dichtes Token-Raster füllt 86 % des KI-Kontextfensters, kurz vor dem automatischen Komprimieren. Es läuft durch den RTK-Filter, der das CLI-Ausgaberauschen entfernt und die sinnvollen Zeilen behält: dasselbe Fenster sinkt auf 73 % Auslastung, mit Raum zum Denken.

4M+
Downloads
85.4K+
GitHub-Stars
140K+
Entwickler
125+
Befehle
18
KI-Coding-Tools

Beliebt bei Entwicklern von

  • Microsoft
  • Google
  • Amazon
  • Meta
  • Apple
  • NVIDIA
  • IBM
  • Tencent
  • ByteDance
  • Alibaba
  • Shopify
  • Datadog
  • SAP
  • Adobe
  • Intel
  • Samsung
  • Bosch
  • Cisco

+1,100 weitere Unternehmen

01 / Das Problem

Du zahlst für alles, was dein Agent liest

Bei jedem Schritt schickt dein Agent seinen gesamten Kontext erneut ans Modell: System-Prompt, Tools, Memory, das Gespräch und jedes Log, jede Datei und jede Webseite, die er gelesen hat. Du zahlst alles, jedes Mal.

Illustration: Tokens, die während einer Coding-Session ins Kontextfenster gelangen, Ebene für Ebene: Tool-Liste und System-Prompt, das Gespräch, Terminal-Ausgabe, gelesene Dateien sowie Web- und MCP-Ergebnisse. Mit RTK schrumpfen das Gespräch und alles, was Tools zurückgeben; Tool-Liste und System-Prompt bleiben unverändert. Die Summe sinkt von 323k auf 200k Tokens, 38 % weniger.

Illustratives Beispiel.

02 / Der Kern

The compressor with 4M+ downloads

Er schreibt deine Shell-Befehle um und entfernt das Rauschen aus ihrer Ausgabe, bevor der Agent sie liest.

Für Entwickler gebaut

Sprache Rust
Lizenz Apache 2.0
Architektur Hooks & RTK Proxy
Overhead < 20 ms
Befehle 125+
Telemetrie Opt-in, keine personenbezogenen Daten
rtk gain Live-Dashboard: Einsparungen durch Befehlsfilterung, RTK-Proxy-Anfragen und Cache-Treffer, Kontextzusammensetzung und Einsparungen pro Befehl
44,4 % gespart

Live-rtk gain aus täglicher Nutzung: 41.502 Befehle, 4,7 Mio. Tokens gespart.

03 / RTK Engine

Eine vollständige Engine zur Kostenreduktion

56% less command output on average, up to 90% on the noisiest. And with RTK Engine: route, build, plug in, share — in any agent.

Zur Ankündigung von RTK Engine

Komprimieren & FilternDer Kern

Ein Lockfile mit 1.200 Zeilen wird zu einer kurzen Paketliste.

Routen

Eine Datei mit 4.000 Zeilen fasst ein kleines Modell zusammen; der Agent bekommt die Antwort, nicht die Datei.

Bauen

„Diffs unangetastet lassen, alles andere komprimieren.“

Einbinden

Jemand schreibt eine Methode für seinen Stack; jede Pipeline kann sie nutzen.

Teilen

Ein Team-Lead teilt die Pipeline; alle legen sie einfach ab.

Jeder Agent

Dieselbe Datei, in Claude Code von einer Person genutzt und in Cursor von einer anderen.

04 / Mach es zu deinem

Eine Datei. Jeder Agent.

Eine Regel sagt, wo RTK wirkt, wann und was es tut. Starte mit einer eingebauten Pipeline, ändere eine Zeile oder schreib deine eigene. Dann teile sie als eine Datei.

RTK liefert seine eigenen Pipelines im selben Format, niemand beginnt mit einer leeren Seite. rtk pipeline show rtk:default zeigt genau, was heute läuft.

Pipeline-Guide lesen

Eine Pipeline-Datei: sie erweitert die eingebauten Pipelines rtk:posthook und rtk:proxy und fügt eine Regel hinzu — wo: bevor der Agent eine Datei liest; wann: die Datei ist länger als 350 Zeilen; was: die Leseanfrage zu einem günstigeren Modell routen.

Läuft in Claude CodeCursorCodexGemini CLI +14

Acts in the agent — hooks on the API traffic — RTK Proxy, optional

05 / Der Beleg

Zeig deine Gewinne, teile deine Pipelines

Führe rtk gain aus, um zu sehen, was RTK dir spart, und teile die Pipeline dahinter mit einem Befehl.

Illustration: rtk gain zeigt, was RTK dir gespart hat, hier 4,7 Mio. Tokens und 44 % weniger Befehlsausgabe. rtk pipeline share macht aus der Pipeline dahinter einen Link, privat oder öffentlich, der in Claude Code, Cursor, Codex und 15 weiteren Agenten läuft.

Community-Pipelines

Von RTK-Nutzern geteilte Pipelines, auf GitHub mit rtk-pipeline getaggt. Installiere eine mit einem Befehl oder veröffentliche deine eigene.

rtk pipeline add github:user/repo
Eine Pipeline installieren. RTK zeigt ihre Regeln und fragt, bevor etwas installiert wird.
rtk pipeline share publish
Veröffentliche deine auf GitHub, mit den gemessenen Einsparungen.

Vor der Installation prüfen. Eine Pipeline kann die Befehle deines Agenten umschreiben und Inhalte an die Modelle senden, die sie angibt. RTK prüft geteilte Pipelines nicht, und ihre Einsparungen sind selbst angegeben.

Community-Pipelines ansehen
Sieh in #show-your-gains auf Discord, was andere Entwickler sparen

Kompatibel mit deinem KI-Stack

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Codex
  • Gemini CLI
  • Windsurf
  • Cline
  • OpenCode

Fewer tokens. Lower bill. Same answers.

06 / Loslegen

In 30 Sekunden startklar

Installieren, Hook aktivieren, jeder Befehl wird automatisch komprimiert.

Upgrade von 0.x? Nichts ändert sich, bis du eine Zeile hinzufügst.

Schnellinstallation

Einzeiler für Linux & macOS.

$ curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh

Homebrew

macOS & Linux.

$ brew install rtk-ai/tap/rtk
$ brew upgrade rtk-ai/tap/rtk

Vorkompilierte Binaries

macOS, Linux, Windows.

Von Releases herunterladen

Aktiviere dann den Auto-Rewrite-Hook

$ rtk init --global

Installiert einen PreToolUse-Hook in der settings.json von Claude Code: jeder Bash-Aufruf wird automatisch umgeschrieben.

Vollständige Anleitung →

Fragen

Häufig gestellt

What is RTK (Rust Token Killer)?

RTK is a cost reduction engine for AI coding agents. It cleans what your agent reads at every tool call — shell output, file reads, search results, web pages, MCP calls — cutting up to 90% of command output noise, and it can hand heavy work to cheaper models. The battle-tested Bash compressor developers starred is the core of the engine. RTK is free to use, written in Rust, with the CLI open source under Apache 2.0, and works with Claude Code, Cursor, and 18 AI coding agents.

What is RTK Engine?

RTK Engine turns the battle-tested compressor into a full cost reduction engine. RTK can now compress every tool's output, not just shell commands, route heavy work to cheaper models, and let you build your own pipeline, plug in new methods, and share your setup as one file that works in any supported agent. Upgrading changes nothing: RTK works exactly as before until you add a line.

What is a pipeline?

One file of rules. Each rule reads like a sentence: where RTK acts, when, and what it does — for example, when the agent reads a file longer than 350 lines, send it to a cheaper model. RTK's own behaviour is written in the same format, so you never start from a blank page: pick a built-in pipeline, change one line, or write your own.

Can I share a pipeline with my team?

Yes. A pipeline is one file: share it, drop it in, and it works in any supported agent. The same file can be used in Claude Code by one person and Cursor by another.

Do I need to change anything when I upgrade to RTK Engine?

No. Install, run rtk init, and RTK works exactly as before. Nothing changes until you add a line to a pipeline. The compressor you already rely on is the core of the engine, not a feature that moved.

How many tokens does RTK actually save?

On the commands RTK rewrites, output drops by 56% on average, and by up to 90% on the noisiest ones. Across the community that adds up to billions of tokens saved. The exact figure depends on the command, so the benchmarks page publishes the methodology and the per-command results, and the blog covers what independent studies measured, including the cases where RTK did not come out ahead. For your own numbers, run rtk gain after a few days of use.

Is RTK free? Are there usage limits?

RTK is completely free. It is open source under the Apache 2.0 license, with source code available on GitHub at github.com/rtk-ai/rtk. There are no usage limits, no API keys required and no accounts. Routing to a cheaper model is optional and uses a model key you provide. Telemetry is opt-in: it is off until you explicitly enable it, and it collects no personal data. For teams, RTK Pro is available at pro.rtk-ai.app.

Which AI coding tools and commands does RTK support?

RTK works with 18 AI coding agents, including Claude Code (Anthropic), Cursor, GitHub Copilot, Codex, Gemini CLI, Windsurf, Cline and Aider — and the engine acts on every tool an agent uses: shell commands, file reads, search, web fetches and MCP calls. On the shell side it covers 125+ commands: cargo test, pytest, go test, git diff, git status, git log, grep, find, ls, pnpm list, tsc, eslint, prisma, docker, kubectl, and more.

How does RTK work without changing my workflow?

Running rtk init --global installs hooks inside your agent that act around each tool call: shell commands are automatically rewritten to rtk equivalents, and output is compressed before it enters the context window. If you turn it on, the RTK Proxy also acts on the API traffic, trimming what the agent sends to the model. You continue using your normal commands, with no manual changes to prompts or workflows needed.

Does RTK affect code quality or AI reasoning accuracy?

No. RTK removes verbose boilerplate and repetitive output noise, not meaningful content. Test failures, error messages, diffs, and stack traces are preserved in full. The AI receives the same essential information with far less noise around it, which leaves more of the context window for reasoning.

Gib deinem Agenten
Raum zum Denken

Bauen. Einbinden. Teilen. In jedem Agenten.

RTK teilen

RTK Pro

Der AI Control Layer für dein Team

RTK läuft auf der Maschine jedes Entwicklers. RTK Pro verbindet diese Maschinen zu einer einzigen Kontrollschicht und holt das ganze Team an Bord: Kostenanalyse, Security-Guardrails und Governance.

  • Observability

    Detaillierte Auswertung über das ganze Team: Nutzung und Kosten pro Projekt und pro Entwickler. Seht, was wirklich kostet, und definiert echte Token-Effizienz-Metriken.

  • Sicherheit

    Jede und jeder neu Onboardete arbeitet hinter Guardrails: Secret-Leaks blockiert, gefährliche Aktionen gestoppt, sensible Daten anonymisiert.

  • Governance

    Feingranulares RBAC, ACLs und Projektverwaltung. Ein neues Teammitglied verbindet sich einmal und ist startklar: Kompression, Guardrails, Observability, Skills, MCP.

RTK Pro entdecken

Das CLI bleibt kostenlos und Open Source.